<template>
	<view>
		<cu-editor ref="editor" :url="uploadUrl" :header="header" :formData="formData" :content="content"
			@before="onUploadBefore" @update="onUpdate" @save="onSave"></cu-editor>
	</view>
</template>

<script>
	import cuEditor from '@/components/cu-editor/cu-editor'
	export default {
		components: {
			cuEditor
		},
		data() {
			return {
				uploadUrl: "",
				header: "",
				formData: "",
				content: ""
			};
		},
		methods: {
			onUploadBefore() {
				console.log("上传前...")
			},
			onUpdate() {
				console.log("更新中...")
			},
			onSave() {
				console.log(this.content);
				console.log("保存中...")
			}
			
		}
	}
</script>

<style lang="scss">

</style>